/**
 * 表示用户领取加息券之后加息券的状态。
 * @author jeff
 * 
 */

package com.hk.commons.enm;

public enum UserCardsStatusEnum {
	SATUS_0(0, "未使用"),
	
	SATUS_1(1, "已使用"),
	
	SATUS_2(2, "已过期");
	
	private int code;
	
	private String msg;
	
	
	private UserCardsStatusEnum(int code, String msg) {
		this.code = code;
		this.msg = msg;
	}

	public int getCode() {
		return code;
	}

	public String getMsg() {
		return msg;
	}
	
	public static String getUserCardStatus(int i){
		String returnStr = null;
		switch(i){
			case 0: returnStr = UserCardsStatusEnum.SATUS_0.getMsg(); break;
			case 1: returnStr = UserCardsStatusEnum.SATUS_1.getMsg(); break;
			case 2: returnStr = UserCardsStatusEnum.SATUS_2.getMsg(); break;
		}
		return returnStr;
	}
}
